﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using SQLToolbox.View.Types;

namespace SQLToolbox.View.UserControls
{
	/// <summary>
	/// Interaction logic for ScriptViewer.xaml
	/// </summary>
	public partial class ScriptViewer : UserControl
	{
		public ScriptViewer()
		{
			InitializeComponent();
		}

		public ScriptViewer(string text)
		{
			InitializeComponent();

			pr.Inlines.Add(new Run(text));
		}
		public string Title
		{
			get
			{
				return "Execute Script";
			}
		}

		[DialogButton("Execute")]
		public bool? OkClicked()
		{
			return true;
		}
		[DialogButton("Cancel")]
		public bool? CancelClicked()
		{
			return false;
		}

	}
}
